"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var a;
(function (a) {
    var obj = {
        x: 1,
        y: 2,
        z: 3
    };
    var circle = {
        radius: 2,
        PI: 3.14
    };
    var cost = function (price) {
        // 优惠打8折
        return price * .8;
    };
    console.log(cost(10));
    var arr = ['1', '2'];
    var obj2 = {
        0: '1',
        1: 'v'
    };
    // type interface的区别
    var b;
    (function (b) {
        // 类实现接口
        var Dog = /** @class */ (function () {
            function Dog() {
            }
            Dog.prototype.speak = function (word) {
            };
            return Dog;
        }());
        var Animal = /** @class */ (function () {
            function Animal(name) {
                this.name = name;
            }
            return Animal;
        }());
        function createAnimal(clazz, name) {
            return new clazz(name);
        }
        var p = createAnimal(Animal, 'leichao');
    })(b || (b = {}));
})(a || (a = {}));
